/* eslint-disable @typescript-eslint/no-require-imports */
module.exports = () => {
    const fs = require('fs')
    const path = require('path')
    const dotenv = require('dotenv')

    const filePath = path.resolve(__dirname, '../', '.env')
    if (fs.existsSync(filePath)) {
        dotenv.config({ path: filePath })
    }
}